<?php
$this->pageTitle = Yii::app()->name . ' - Login';
$this->breadcrumbs = array(
    Yii::t('default', 'Login'),
);
?>
<?php
$path = Yii::app()->request->baseUrl . '/';
?>
<link href="<?php echo $path ?>css/search.css" rel="stylesheet" type="text/css" />

<div style="margin-left: 25%;padding-left: 50px;width: 40%;background-color:#EEE;border:#AFD0F5 1px; border-style:ridge;border-radius:5px;">
    <h2 style="padding-left:80px;"><b><font style="color: #0066A4;"><?php echo mb_strtoupper(Yii::t('default', 'Login'), 'utf-8'); ?></font></b></h2>
    <div class="form">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
        ?>

        <div class="row">
            <?php echo $form->labelEx($model, 'username'); ?>
            <?php echo $form->textField($model, 'username', array('size' => 20)); ?>
            <?php echo $form->error($model, 'username'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'password'); ?>
            <?php echo $form->passwordField($model, 'password', array('size' => 20)); ?>
            <?php echo $form->error($model, 'password'); ?>
        </div>

        <div class="row rememberMe">
            <?php echo $form->checkBox($model, 'rememberMe'); ?>
            <?php echo $form->label($model, 'rememberMe'); ?>
            <?php echo $form->error($model, 'rememberMe'); ?>
        </div>

        <div class="row buttons" style="padding-left:80px;">
            <?php echo CHtml::submitButton(Yii::t('default', 'Login')); ?>
        </div>

        <?php $this->endWidget(); ?>
    </div>
</div>
